<?php

namespace common\base;

/**
 * StaticInstanceInterface is the interface for providing static instances to classes,
 * 
 * @author emhome <emhome@163.com>
 * @since 1.0
 */
interface ShareDataInterface {

    /**
     * Returns static class instance, which can be used to obtain meta information.
     * @param bool $id whether to re-create static instance even, if it is already cached.
     * @return static class instance.
     */
    public static function findShareById($id);

    /**
     * Returns static class instance, which can be used to obtain meta information.
     * @param bool $id whether to re-create static instance even, if it is already cached.
     * @return static class instance.
     */
    public function getShareData();
}
